package com.qlylkj.lbk.ui.company

import com.forest.core.etx.startKtxActivity
import com.qlylkj.lbk.R
import com.qlylkj.lbk.app.PreferenceHelper
import com.qlylkj.lbk.base.BaseActivity
import com.qlylkj.lbk.base.BaseVMActivity
import kotlinx.android.synthetic.main.layout_toolbar.*

class CompanyInfoActivity: BaseActivity() {

    companion object{
        const val COMPANY_NAME = "companyName"
        const val COMPANY_ID = "companyId"
    }

    override fun setLayoutId() = R.layout.activity_company_info

    override fun initView() {
        toolbar.setNavigationOnClickListener { finish() }
        val companyId = intent.getStringExtra(COMPANY_ID)
        val companyName = intent.getStringExtra(COMPANY_NAME)
        toolbarTitle.text = companyName
        supportFragmentManager
            .beginTransaction()
            .add(R.id.fragmentContainerView,CompanyInfoFragment.newInstance(companyId))
            .commitNow()
    }

    override fun initData() {

    }




}